﻿using System.Windows.Forms;

namespace Marmat.Forms
{
    public class TreeViewHitTestInfo
    {
        /// <summary>
    /// 初始化 System.Windows.Forms.TreeViewHitTestInfo 类的新实例。
    /// </summary>
    /// <param name="hitNode">位于命中测试所指示的位置的树节点。</param>
    /// <param name="hitLocation">One of the System.Windows.Forms.TreeViewHitTestLocations values.</param>
    /// <remarks></remarks>
        public TreeViewHitTestInfo(TreeNode hitNode, TreeViewHitTestLocations hitLocation)
        {
            this.m_Node = hitNode;
            this.m_Location = hitLocation;
        }

        /// <summary>
    /// 获取 System.Windows.Forms.TreeView 控件上的命中测试的位置（相对于 System.Windows.Forms.TreeView 及其包含的节点）。
    /// </summary>
    /// <value></value>
    /// <returns>System.Windows.Forms.TreeViewHitTestLocations 值之一。</returns>
    /// <remarks></remarks>
        public TreeViewHitTestLocations Location
        {
            get
            {
                return this.m_Location;
            }
        }

        private TreeViewHitTestLocations m_Location;

        /// <summary>
    /// 获取位于由 System.Windows.Forms.TreeView 控件的命中测试所指示的位置的 System.Windows.Forms.TreeNode。
    /// </summary>
    /// <value></value>
    /// <returns>位于由 System.Windows.Forms.TreeView 控件的命中测试所指示的位置的 System.Windows.Forms.TreeNode。</returns>
    /// <remarks></remarks>
        public TreeNode Node
        {
            get
            {
                return this.m_Node;
            }
        }

        private TreeNode m_Node;
    }
}